﻿
require.config({
    baseUrl: "/assets/scripts",
    paths: {
        "jquery": "jquery-1.11.1.min",
        "common": "common",
        "jquery_ui": "../plugins/jquery-ui/jqueryui-1.10.3.min",
        //"validator": "../plugins/nice-validator/local/zh-CN",
        "validator": "../plugins/nice-validator/jquery.validator-0.6.8",
        "fileupload": "../plugins/ajaxfileupload",
        "spectrum": "../plugins/spectrum/spectrum.min",
        "xjgrid": "../plugins/xjgrid/xjgrid",

        "froala_editor": "../plugins/wysihtml5/froala_editor.min",
        "froala_editor_ie8": "../plugins/wysihtml5/froala_editor_ie8.min",
        "colors": "../plugins/wysihtml5/colors.min",
        "media_manager": "../plugins/wysihtml5/media_manager.min",
        "font_family": "../plugins/wysihtml5/font_family.min",
        "font_size": "../plugins/wysihtml5/font_size.min",
        "block_styles": "../plugins/wysihtml5/block_styles.min",
        "editor_zh_cn": "../plugins/wysihtml5/langs/zh_cn",

        "datetimepicker": "../plugins/datetimepicker/jquery.datetimepicker",
        "ZeroClipboard": "../plugins/ZeroClipboard/ZeroClipboard-2.1.6",
        "jquery_json": "../plugins/jquery.json.min",
    },
    shim: {
        'jquery_ui': ['jquery'],
        'validator': ['jquery'],
        'fileupload': ['jquery'],
        'spectrum': ['jquery'],
        'xjgrid': ['jquery'],

        'froala_editor': {
            deps: [
                'jquery',
                //'css!../plugins/wysihtml5/froala_editor.min.css',
                //'css!../plugins/wysihtml5/font-awesome.min.css',
            ]
        },
        'froala_editor_ie8': ['jquery', 'froala_editor'],
        'colors': ['jquery', 'froala_editor'],
        'media_manager': ['jquery', 'froala_editor'],
        'font_family': ['jquery', 'froala_editor'],
        'font_size': ['jquery', 'froala_editor'],
        'block_styles': ['jquery', 'froala_editor'],
        'editor_zh_cn': ['jquery', 'froala_editor'],

        'datetimepicker': ['jquery'],
        'jquery_json': ['jquery'],
        //'zero_clipboard': ['jquery'],
        //hello: {
        //    init: function () {
        //        return {
        //            hello: hello,
        //            hello2: hello2
        //        }
        //    }
        //}
    },
    urlArgs: "v=" + (new Date()).getTime()
});
